﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;
namespace IHISCETeim.Web.MachineSys.UserModel
{
    public partial class U4008RecordView : PageBase
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.查看 };
            }
        }
        protected override string DWZRef
        {
            get { return "U4008RecordList"; }
        }

        /// <summary>
        /// 需要修改的ID
        /// </summary>
        protected int U4RID
        {
            get
            {
                return GetRequestValue<int>("U4RID");
            }
        }

        private U4008RecordInfo _obj;
        protected U4008RecordInfo obj
        {
            get
            {
                if (_obj == null)
                    _obj = U4008RecordController.GetByU4RID(U4RID);
                return _obj;
                //OMenuController.ge
            }
        }

        private UWarrantyCardInfo _obj2;
        protected UWarrantyCardInfo obj2
        {
            get
            {
                if (_obj2 == null)
                    _obj2 = UWarrantyCardController.GetBySerialNumber(obj.SerialNumber);
                return _obj2;
                //OMenuController.ge
            }
        }

        private OUserInfo _obj3;
        protected OUserInfo obj3
        {
            get
            {
                if (_obj3 == null)
                    _obj3 = OUserController.GetByUserName(obj.UserName);
                return _obj3;
                //OMenuController.ge
            }
        }


        protected void Page_Load(object sender, EventArgs e)
        {
            this.AddLog(Permission.查看, obj);
        }

       
    }
}